package org.flashamaphone.voices.waveformFactories
{
	/** Generate a sawtooth wave cycle */
	public class SawtoothWaveFactory extends WaveFactory
	{
		/**
		 * sample a sin wave at a phase
		 */
		public override function sample(phase:Number):Number {
			return phase - Math.floor(phase);
		}
	}
}